package com.kangfu.db.domain.entity;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 课程视频对象 lesson
 * 
 * @author ruoyi
 * @date 2022-08-14
 */
public class Lesson extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 标题 */
    private String title;

    /** 价格 */
    private BigDecimal price;

    /** 封面 */
    private String cover;

    /** 视频链接 */
    private String url;

    /** 视频时长 */
    private Integer lessonTime;

    /** 已经打卡人数 */
    private Long checkinCount;

    /** 简单描述 */
    private String desc;

    /** 禁忌人群 */
    private String prohibition;

    /** 注意事项 */
    private String attention;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setLessonTime(Integer lessonTime) 
    {
        this.lessonTime = lessonTime;
    }

    public Integer getLessonTime() 
    {
        return lessonTime;
    }
    public void setCheckinCount(Long checkinCount) 
    {
        this.checkinCount = checkinCount;
    }

    public Long getCheckinCount() 
    {
        return checkinCount;
    }
    public void setDesc(String desc) 
    {
        this.desc = desc;
    }

    public String getDesc() 
    {
        return desc;
    }
    public void setProhibition(String prohibition) 
    {
        this.prohibition = prohibition;
    }

    public String getProhibition() 
    {
        return prohibition;
    }
    public void setAttention(String attention) 
    {
        this.attention = attention;
    }

    public String getAttention() 
    {
        return attention;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("price", getPrice())
            .append("cover", getCover())
            .append("url", getUrl())
            .append("lessonTime", getLessonTime())
            .append("checkinCount", getCheckinCount())
            .append("desc", getDesc())
            .append("prohibition", getProhibition())
            .append("attention", getAttention())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
